﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.ProductionManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ProductionManagement.ProdTransSnVMs
{
    public partial class ProdTransSnBatchVM : BaseBatchVM<ProductionTransSn, ProdTransSn_BatchEdit>
    {
        public ProdTransSnBatchVM()
        {
            ListVM = new ProdTransSnListVM();
            LinkedVM = new ProdTransSn_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ProdTransSn_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ProdTransSn._Sn")]
        public string Sn { get; set; }
        [Display(Name = "_Model._ProdTransSn._ProductId")]
        public long? ProductId { get; set; }
        [Display(Name = "_Model._ProdTransSn._ProductCode")]
        public string ProductCode { get; set; }
        [Display(Name = "_Model._ProdTransSn._Wo")]
        public string Wo { get; set; }
        [Display(Name = "_Model._ProdTransSn._CurLineId")]
        public long? CurLineId { get; set; }
        [Display(Name = "_Model._ProdTransSn._CurLineCode")]
        public string CurLineCode { get; set; }
        [Display(Name = "_Model._ProdTransSn._CurOpId")]
        public long? CurOpId { get; set; }
        [Display(Name = "_Model._ProdTransSn._CurOpCode")]
        public string CurOpCode { get; set; }
        [Display(Name = "_Model._ProdTransSn._CurRoutingId")]
        public long? CurRoutingId { get; set; }
        [Display(Name = "_Model._ProdTransSn._CurRoutingCode")]
        public string CurRoutingCode { get; set; }
        [Display(Name = "_Model._ProdTransSn._InboundTime")]
        public DateTime? InboundTime { get; set; }
        [Display(Name = "_Model._ProdTransSn._OutboundTime")]
        public DateTime? OutboundTime { get; set; }
        [Display(Name = "_Model._ProdTransSn._OnlineTime")]
        public DateTime? OnlineTime { get; set; }
        [Display(Name = "_Model._ProdTransSn._OfflineTime")]
        public DateTime? OfflineTime { get; set; }
        [Display(Name = "_Model._ProdTransSn._Stage")]
        public SnStageEnum? Stage { get; set; }
        [Display(Name = "_Model._ProdTransSn._Status")]
        public SnStatusEnum? Status { get; set; }
        [Display(Name = "_Model._ProdTransSn._IsCompelted")]
        public bool? IsCompelted { get; set; }
        [Display(Name = "_Model._ProdTransSn._CustomerSn")]
        public string CustomerSn { get; set; }
        [Display(Name = "_Model._ProdTransSn._ReworkFlag")]
        public ReworkFlagEnum? ReworkFlag { get; set; }
        [Display(Name = "_Model._ProdTransSn._ReworkDoc")]
        public string ReworkDoc { get; set; }
        [Display(Name = "_Model._ProdTransSn._ReworkCount")]
        public int? ReworkCount { get; set; }
        [Display(Name = "_Model._ProdTransSn._NgSteps")]
        public string NgSteps { get; set; }
        [Display(Name = "_Model._ProdTransSn._IsNeedRework")]
        public bool? IsNeedRework { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}